package com.elsa.server.demo.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.elsa.common.entity.ElsaServerConstant;
import com.elsa.server.demo.service.fallback.HelloServiceFallback;

@FeignClient(value = ElsaServerConstant.ELSA_SERVER_SYSTEM, contextId = "helloServiceClient", fallbackFactory = HelloServiceFallback.class)
public interface IHelloService {
    @GetMapping("hello")
    String hello(@RequestParam("name") String name);
}
